/*
	script.runInNewContext([sandbox])
*/

var vm = require('vm');
obj = {
	globalVar: 0
};

var script = vm.createScript('globalVar += 1');
for(var i=0; i<100; i++){
	script.runInNewContext(obj);
}
console.log(obj.globalVar);  //100

